public class Client {
    public static void main(String[] args) {
        Approver approver1, approver2, approver3, approver4;
        approver1 = new Director("Approver A");
        approver2 = new VicePresident("Approver B");
        approver3 = new President("Approver C");
        approver4 = new Congress("Approver D");

        approver1.setSuccessor(approver2);
        approver2.setSuccessor(approver3);
        approver3.setSuccessor(approver4);

        PurchaseRequest pr1 = new PurchaseRequest(45000, 10001, "Purchase Item A");
        PurchaseRequest pr2 = new PurchaseRequest(60000, 10002, "Purchase Item B");
        PurchaseRequest pr3 = new PurchaseRequest(160000, 10003, "Purchase Item C");
        PurchaseRequest pr4 = new PurchaseRequest(800000, 10004, "Purchase Item D");

        approver1.processRequest(pr1);
        approver1.processRequest(pr2);
        approver1.processRequest(pr3);
        approver1.processRequest(pr4);
    }
}
